﻿<Window x:Class="MOCSoftware.Utilities.JpgMetaDataViewer.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:properties="clr-namespace:MOCSoftware.Utilities.JpgMetaDataViewer.Properties"
        xmlns:view="clr-namespace:MOCSoftware.Utilities.JpgMetaDataViewer.View"
        Cursor="{Binding Path=FormCursor}"
        Style="{DynamicResource Main}"
        Title="{x:Static properties:Resources.About_Title}"
        >
    <Window.Resources>
        <ResourceDictionary Source="ApplicationResources.xaml" />
    </Window.Resources>
    <DockPanel Cursor="{Binding Path=FormCursor}">
        <ContentControl IsEnabled="{Binding Path=FormIsEnabled}" DockPanel.Dock="Top" Name="CtcMainMenu" Content="{Binding Path=MainMenu}" />
        <StatusBar DockPanel.Dock="Bottom">
            <TextBlock Text="{Binding Path=StatusMessage}" Name="SbFeedback" />
            <ProgressBar Name="PgbLoadServices" Visibility="{Binding Path=ProgressBarVisibility}" Maximum="{Binding Path=ProgressBarMaximum}" Minimum="{Binding Path=ProgressBarMinimum}" Value="{Binding Path=ProgressBarCurrent,Mode=OneWay}" Width="250" Height="20" HorizontalAlignment="Right" />
        </StatusBar>
        <Grid HorizontalAlignment="Stretch">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition />
                </Grid.RowDefinitions>
                <ContentControl Grid.Column="0" Grid.Row="0" Name="CtcImage" Content="{Binding Path=Image}" />
                <ContentControl Grid.Column="1" Grid.Row="0" Name="CtcMetaData" Content="{Binding Path=MetaData}" />
            </Grid>
            <view:AboutView DataContext="{Binding AboutViewModel}" Visibility="{Binding Path=IsVisible,Converter={StaticResource BoolToVisibility}}" />
        </Grid>
    </DockPanel>
</Window>
